-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dots pattern on mobile log in screen & thank you screen #240
Fix dots pattern on mobile log in screen & thank you screen #240
Conversation
Based on the first Note in the description above, if we change the margin between the dot pattern and text to 40px on mobile (currently at 30px), and the maximum margin on non-mobile to 60px (currently 70px as per Figma), would that be ok? |
That works well, just tested in design. Feel free to proceed. |
7e7ef5a
to
4d0a967
Compare
4d0a967
to
7b57c5f
Compare
Thanks @marko-srb. @adamwoodnz could you take a look at the PR? The question asked before has been clarified and I've updated the commit message and the results in the PR description. Thanks 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me. I notice that the dots are aligned left, so that more dots are added from the right as the screen gets wider. On small screens this looks a little unbalanced IMO
Have we considered positioning the dots centrally, possibly only on smaller screens where it's more noticeable?
background-position: left | background-position: centre |
---|---|
yeah, that change is from this PR and there are some discussions about this.
@jasmussen do you think we should position the dots centrally for all sizes of screen or just smaller screen in this case? |
Good eyes. Most important thing: whatever we decide, we should do that everywhere. I believe that Marko designed it to be centered initially, though I suggested we should left-align because then the dots always line up with News on the left. But I do see that when we reach the mobile breakpoint, it's less elegant with the uneven padding left and right. I'm happy to go full centered, so long as we do it consistently, and if Marko chimes in otherwise, I'll defer to him! |
Thanks for the feedback. I've positioned the dot pattern centrally, let me know if any further tweaks are needed. If not, I'll merge it after a while. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked at sizes of iPhone 12, Samsung Galaxy S20, iPad and desktop, and dots LGTM
|
Fixes #226
This PR first removes the style from the old design. Then it also ensures the distance between the dot pattern and the text is between 30-50 (submit page) or
30 & 7040-60 (Login & Thank you screen).Additionally, because the Cover Block has an automatically changing margin-top, it makes the CSS control of the distance more complicated on different screens (On smaller screens, the margin-top of the cover disappears, causing the text and dots pattern to overlap.). Plus, I don't see the necessity of the Cover Block here as we only have text at the moment. It might also be a part of the old design. So it has been removed.
Figma
Screenshots
30px & 70px40px-60px)30px & 70px40px-60px)Note
Currently, the margin between the dot pattern and text on the Login Page and Thank You Page is:30px in the mobile view and 70px in non-mobile views (> 599px).This is according to the Figma design. However, if we want a progressive adjustment like the Submit Page (using clamp to vary the margin between 30-50px), the Login Page and Thank You Page can only vary between 40-60px. This is because after the--wp--preset--spacing--40
, we only have--wp--preset--spacing--50: clamp(40px, calc(5vw + 10px), 60px);
.This means the mobile screen would be at 40px (which is acceptable per the previous discussion), and the maximum would be 60px (This hasn't been discussed yet, might need to see if this is acceptable since the Figma design specifies 70px, a difference of 10px)👆 --wp--preset--spacing--50 is used eventually as per the feedback in the comment below.
Note
Only the Cover Block of the login page has been removed here. The Cover Block for the Thank You Page needs to be edited on the website.